<SCRIPT LANGUAGE="JavaScript">

function setCropFromJavascript(id){
    document.jsap.setCropFromJavascript(id);
}

function setCropFromJava(id){
    document.getElementById("cropselector").value = id;
}

function savePlan(){
    var s = document.jsap.serializePlan();
    var id = document.getElementById("blockselector").value;
    var url = "./croppingPlan.php?blockid=" + id + "&plan=" + s;
    window.location = url;
}

function setBlock(id){
    var url = "./croppingPlan.php?blockid=" + id;
    window.location = url;
}

</SCRIPT>